﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;

using BusinessEntity.FileManagement;
using BusinessEntity.Common;
using Common;
using System.Collections.Generic;

[ServiceContract(SessionMode=SessionMode.NotAllowed)]
public interface IFileManagementService
{
    #region FILE 
    [OperationContract]
    SortableCollection<MyFile> SearchFile(string sessionId, MyFile oMyFile, out string successMessage, out string errorMessage);

    [OperationContract]
    void UploadFile(string sessionId, MyFile oMyFile, out string successMessage, out string errorMessage);

    [OperationContract]
    void DeleteFile(string sessionId, int fileId, out string successMessage, out string errorMessage);

    [OperationContract]
    SortableCollection<MyFileType> GetFileType(string sessionId, out string successMessage, out string errorMessage);

    [OperationContract]
    SortableCollection<DocumentType> GetDocumentType(string sessionId, out string successMessage, out string errorMessage);

    [OperationContract]
    SortableCollection<CoreUser> GetCoreUsers(string sessionId, out string successMessage, out string errorMessage);



    #endregion
}
